//
// Created by Administrator on 2019/11/29.
//

#include "graph.h"

// 创建弧
ArcNode *created_arc(int adjv) {
    ArcNode *arc = (ArcNode *) malloc(sizeof(ArcNode));
    arc->next = NULL;
    arc->adjv = adjv;

    return arc;
}

// 创建顶点
VNode created_vex(char data, ArcNode *first) {
    VNode vnode = {0};
    vnode.data = data;
    vnode.first = first;

    return vnode;
}


